package com.laomeng.client.controller;

import com.laomeng.client.service.IHelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author mqr
 * @version v1.0
 * @date 2019-11-30 10:52
 */
@RequestMapping("test")
@RestController
public class TestController {

    @Autowired
    private IHelloService helloService;

    @RequestMapping("sayHello")
    public Map<String,Object> sayHello(String name){
      return  helloService.sayHello(name);
    }
}
